projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd5441
)
arm: pxa: init ethaddr for LP-8x4x using DT
author
Sergei Ianovich
<
[email protected]
>
Tue, 17 Dec 2013 01:03:44 +0000
(
05:03
+0400)
committer
Marek Vasut
<
[email protected]
>
Wed, 18 Dec 2013 17:15:26 +0000
(18:15 +0100)
When DT define aliases for etherner0 and ethernet1, U-Boot
automatically patched MAC addresses using ethaddr and eth1addr
environment variables respectively.
Custom initialization is no longer needed.
Signed-off-by: Sergei Ianovich <
[email protected]
>
CC: Marek Vasut <
[email protected]
>
board/icpdas/lp8x4x/lp8x4x.c
patch
|
blob
|
history
diff --git
a/board/icpdas/lp8x4x/lp8x4x.c
b/board/icpdas/lp8x4x/lp8x4x.c
index 5eee18af7ba0cc5656d828b0e392f420eac0aa8e..a136dc4c37ab611bbcbd82a7379f90251b0b3a96 100644
(file)
--- a/
board/icpdas/lp8x4x/lp8x4x.c
+++ b/
board/icpdas/lp8x4x/lp8x4x.c
@@
-121,25
+121,8
@@
int board_usb_cleanup(int index, enum usb_init_type init)
#endif
#ifdef CONFIG_DRIVER_DM9000
-void lp8x4x_eth1_mac_init(void)
-{
- u8 eth1addr[8];
- int i;
- u8 reg;
-
- eth_getenv_enetaddr_by_index("eth", 1, eth1addr);
- if (!is_valid_ether_addr(eth1addr))
- return;
-
- for (i = 0, reg = 0x10; i < 6; i++, reg++) {
- writeb(reg, (u8 *)(DM9000_IO_2));
- writeb(eth1addr[i], (u8 *)(DM9000_DATA_2));
- }
-}
-
int board_eth_init(bd_t *bis)
{
- lp8x4x_eth1_mac_init();
return dm9000_initialize(bis);
}
#endif